package org.project.single.pojo.ro.menu;

import lombok.Getter;
import lombok.Setter;
import org.stone.project.baseCommon.service.Insert;
import org.stone.project.baseCommon.service.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Map;

@Getter
@Setter
public class EditMenuBackRo {
    @NotEmpty(message = "不为空",groups = Update.class)
    private String id;

    /**
     * 父级目录code
     * null为根节点
     */
    @NotEmpty(message = "parentCode不为空",groups = Insert.class)
    private String parentCode;

    /**
     * 菜单名称
     */
    @NotEmpty(message = "menuName不为空")
    private String menuName;

    /**
     * 菜单类型
     * 1目录 2菜单 3按钮
     */
    @NotNull(message = "menuType不为空")
    private Integer menuType;

    /**
     * 权限标识
     */
    private String permissionFlag;

    /**
     * 渠道
     */
    @NotEmpty(message = "channel不为空",groups = Insert.class)
    private String channel;

    /**
     * 客户端分类
     * 1移动端  2pc端
     */
    @NotNull(message = "channelType不为空")
    private Integer channelType;

    /**
     * 路由信息
     */
    private Map<String,Object> routeInfo;
}
